const getters = {

  // 在页面中 使用模块中的数据 this.$store.state.app.sidebar
  // 拆分成getters以后 this.$store.getters.sidebar
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name
}
export default getters
